projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix options in preset challenges
[vchess.git]
/
client
/
src
/
views
/
Variants.vue
diff --git
a/client/src/views/Variants.vue
b/client/src/views/Variants.vue
index
f60e5f1
..
8de335e
100644
(file)
--- a/
client/src/views/Variants.vue
+++ b/
client/src/views/Variants.vue
@@
-16,7
+16,7
@@
main
h3 {{ st.tr["vt" + g] }}
p {{ st.tr["vg" + g] }}
ul
h3 {{ st.tr["vt" + g] }}
p {{ st.tr["vg" + g] }}
ul
- li(v-for="v of
variantGroup.get(g
)")
+ li(v-for="v of
sortVariants(variantGroup.get(g)
)")
a(:href="getLink(v)") {{ v.display }}
|  –
| {{ st.tr[v.description] }}
a(:href="getLink(v)") {{ v.display }}
|  –
| {{ st.tr[v.description] }}
@@
-59,6
+59,9
@@
export default {
}
},
methods: {
}
},
methods: {
+ sortVariants: function(group) {
+ return group.sort( (v1, v2) => v1.name.localeCompare(v2.name) );
+ },
// oninput listener, required for smartphones:
setCurPrefix: function(e) {
this.curPrefix = e.target.value;
// oninput listener, required for smartphones:
setCurPrefix: function(e) {
this.curPrefix = e.target.value;