From f8beabfd55cc4530ab009c09a230b27f2668ae9a Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 26 May 2022 17:32:06 -0400 Subject: [PATCH] sort rooms --- app/javascript/sessions/room_picker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/sessions/room_picker.vue b/app/javascript/sessions/room_picker.vue index 1dfeaadc9..61bf01446 100644 --- a/app/javascript/sessions/room_picker.vue +++ b/app/javascript/sessions/room_picker.vue @@ -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() {