Skip to content

Commit

Permalink
fix(signage/playlists): sort by name
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 16, 2024
1 parent 70d2811 commit 7b80c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-rest-api/controllers/signage/playlists.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module PlaceOS::Api
"authority_id" => [authority.id.as(String)],
})
query.search_field "name"
query.sort({"created_at" => {order: :desc}})
query.sort({"name" => {order: :asc}})
paginate_results(elastic, query)
end

Expand Down

0 comments on commit 7b80c37

Please sign in to comment.