Skip to content

Commit

Permalink
Fix sorting by uploaded date
Browse files Browse the repository at this point in the history
  • Loading branch information
ibillingsley committed Jun 29, 2024
1 parent e69db03 commit 61131db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## v1.5.0-beta (2024-05-27)
## v1.5.0-beta (2024-06-29)
**Improvement:**
- <a href="https://github.com/AllPoland/ArcViewer" target="_blank">ArcViewer</a> replaces Rabbit's viewer for previews.
- Supports V3 maps with arcs and chains.
Expand All @@ -15,6 +15,7 @@

**Bug fixes:**
- Fixed freezing on startup.
- Fixed sorting by uploaded date.
- Fixed beatmap information page for maps with no with no BeatSaver data.

## v1.4.1 (2022-07-29)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ function sortText(a: string, b: string): number {
}

function sortDateFromString(a: string, b: string): number {
if (!a || !b) {
return 0;
if (!a) {
if (!b) {
return 0;
}
return -1;
}
if (!b) {
return 1;
}

const dateA = new Date(a);
Expand Down

0 comments on commit 61131db

Please sign in to comment.