Implement alphabetical sorting

This commit is contained in:
James
2017-06-11 22:38:58 +10:00
parent bb2fe0be7c
commit f6d6e338d7
4 changed files with 66 additions and 26 deletions

View File

@ -123,6 +123,13 @@ function processGame(game) {
model.compatibility = recent.compatibility;
model.testcase_date = recent.date;
}
let section_id = `${model.title[0]}`.toLowerCase();
if (!section_id.match(/[a-z]+/)) {
section_id = "#";
}
model.section_id = section_id;
// END SHORTCUTS BLOCK
// SAVEFILE BLOCK