Skip to content

Commit bb750bb

Browse files
authored
Merge pull request #338 from elluminance/numeric-sort
Made the sort for map listing be numeric-aware
2 parents 4b1be51 + d6768e8 commit bb750bb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
### Added
88
- Added Array Widget
99

10+
### Changed
11+
- Made the listing of maps in the editor be numeric aware.
12+
1013
## [1.8.1] 2024-08-01
1114
### Fixed
1215
- The currently selected mod is now properly displayed in the settings menu

webapp/src/app/components/dialogs/load-map/virtualMapNode.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ export class VirtualMapNode {
8282
return aIsDir ? -1 : 1;
8383
}
8484

85-
return a.name.localeCompare(b.name);
85+
return a.name.localeCompare(b.name, undefined, {numeric: true});
8686
}
8787
}

0 commit comments

Comments
 (0)