The sorting you can do in Qlik Sense option for the object where you are using the drll down. As you drill down you need to sort each layer you are on.
So in simple terms:
1) Sort first layer.
2) Drill down to next
3) Sort that layer.
etc. until you have sorted all of them in that object.
And for renaming the fields I would do that in the script.
Simple "AS" Statement.
OriginalFieldName AS NewFieldName