Question: How to sort expressions according to order of derivatives or index of subscripts?

I wonder if there is any way to sort expressions like

 to

 

also:

how to sort  to

Please Wait...