Skip to content

Commit

Permalink
Merge pull request #139 from ChicagoWorldcon/room-fix
Browse files Browse the repository at this point in the history
sort rooms
  • Loading branch information
balen authored May 26, 2022
2 parents 62f5939 + f8beabf commit bbbc31d
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 bbbc31d

Please sign in to comment.