I have such a PostgreSQL table
id data(jsonb)
-- ------------------------------------
23 {"val": [30, 5, 1]}
41 {"val": [11, 4, 99]}
99 {"val": [2]}
Now I would like to get all sorted val and have the limitation for each query (for pagination). For example 1st query
val
-----
1
2
4
5
11
2nd query
val
-----
30
99