Oddly enough, I did not find anything about this ...
How can I sort my Rails JSON server? I am currently using Serializer ActiveModel:
embed :ids, include: true attributes :id, :name has_many :places
I would like to sort inline places .
The only answer I found was this SO question , but it explains how the default serializer sort is, not how to sort.
ruby-on-rails active-model-serializers
Justin D.
source share