Skip to content

Commit

Permalink
sort rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry committed May 26, 2022
1 parent 9574187 commit f8beabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/sessions/room_picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
}),
computed: {
roomOptions() {
return [{text: "No room selected", value: null}, ...this.collection.map(r => ({text: r.name, value: r.id}))]
return [{text: "No room selected", value: null}, ...this.collection.sort((a,b) => b.sortorder - a.sortorder).map(r => ({text: r.name, value: r.id}))]
}
},
mounted() {
Expand Down

0 comments on commit f8beabf

Please sign in to comment.