projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b405c8
)
Sort variants alphabetically
author
Benjamin Auder
<benjamin.auder@somewhere>
Sat, 22 Feb 2020 13:00:18 +0000
(14:00 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Sat, 22 Feb 2020 13:00:18 +0000
(14:00 +0100)
client/src/store.js
patch
|
blob
|
blame
|
history
diff --git
a/client/src/store.js
b/client/src/store.js
index
60e01b9
..
91f9bdd
100644
(file)
--- a/
client/src/store.js
+++ b/
client/src/store.js
@@
-13,7
+13,7
@@
export const store = {
socketCloseListener: null,
initialize() {
ajax("/variants", "GET", res => {
- this.state.variants = res.variantArray;
+ this.state.variants = res.variantArray
.sort((v1,v2) => v1.localeCompare(v2))
;
});
let mysid = localStorage.getItem("mysid");
// Assign mysid only once (until next time user clear browser data)