The first mistake is what distinctis in the wrong place.
SELECT distinct 'label1:'|| col1 as c
from tab1
ORDER BY c;
The second one mentioned in the comments is that you ordered col1. You need to add the alias of the new column and order the alias as described above. (Note that you can use col1as an alias if you want)
source
share