feat(ui): Support for the Series table

This commit is contained in:
2024-12-01 14:08:06 -07:00
parent c3fb5dcd5f
commit b75a95a708
3 changed files with 86 additions and 16 deletions
+7 -2
View File
@@ -403,8 +403,13 @@ fn series_sorting_options() -> Vec<SortOption<Series>> {
}),
},
SortOption {
name: "Runtime",
cmp_fn: Some(|a, b| a.runtime.cmp(&b.runtime)),
name: "Status",
cmp_fn: Some(|a, b| {
a.status
.to_string()
.to_lowercase()
.cmp(&b.status.to_string().to_lowercase())
}),
},
SortOption {
name: "Rating",