mirror of
https://github.com/immich-app/immich.git
synced 2026-10-17 05:12:35 +08:00
fix(mobile): sort time zones by name within the same offset (#32087)
This commit is contained in:
@@ -181,6 +181,7 @@ abstract class _TimeZoneOffset with _$TimeZoneOffset implements Comparable<_Time
|
||||
|
||||
@override
|
||||
int compareTo(_TimeZoneOffset other) {
|
||||
return offsetInMilliseconds.compareTo(other.offsetInMilliseconds);
|
||||
final offset = offsetInMilliseconds.compareTo(other.offsetInMilliseconds);
|
||||
return offset != 0 ? offset : location.name.compareTo(other.location.name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user