Open this example in the interactive library
Source code
WITH labels(v) AS (VALUES ('2'),('10'),('1')) SELECT v FROM labels ORDER BY cast(v AS INTEGER);
Sample output
[
{
"v": "1"
},
{
"v": "2"
},
{
"v": "10"
}
]
Open this example in the interactive library
WITH labels(v) AS (VALUES ('2'),('10'),('1')) SELECT v FROM labels ORDER BY cast(v AS INTEGER);
[
{
"v": "1"
},
{
"v": "2"
},
{
"v": "10"
}
]