I have a Postgres table which has column of type JSON which has a bunch of JSON objects in them. I want to query the table records and order the results by a value stored in the
Use -> instead of ->> (->> gets a JSON object field as text):
->
->>
select * from my_table ORDER BY data->'some_number' asc;