Align series sort with displayed capture time

This commit is contained in:
Codex
2026-05-27 21:58:30 +08:00
parent e788f08037
commit f34e40ec0a
2 changed files with 2 additions and 2 deletions

View File

@@ -1106,7 +1106,7 @@ def scan_study(ct_number: str) -> dict[str, Any]:
def series_time_key(row: dict[str, Any]) -> tuple[str, int, str]:
return (
row.get("series_time") or row.get("first_time") or row.get("study_time") or "",
row.get("first_time") or row.get("series_time") or row.get("study_time") or "",
numeric(row.get("series_number", "")),
row.get("description", ""),
)

View File

@@ -108,7 +108,7 @@ function timeRange(series) {
}
function timeKey(series) {
return String(series.series_time || series.first_time || series.study_time || "").replace(/\D/g, "").padEnd(6, "0");
return String(series.first_time || series.series_time || series.study_time || "").replace(/\D/g, "").padEnd(6, "0");
}
function studyTimeKey(study) {