Align series sort with displayed capture time
This commit is contained in:
@@ -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]:
|
def series_time_key(row: dict[str, Any]) -> tuple[str, int, str]:
|
||||||
return (
|
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", "")),
|
numeric(row.get("series_number", "")),
|
||||||
row.get("description", ""),
|
row.get("description", ""),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ function timeRange(series) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function timeKey(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) {
|
function studyTimeKey(study) {
|
||||||
|
|||||||
Reference in New Issue
Block a user