2 level sort for DF

df sort wip

2 level df sort done