Implemented support for reverse sort by nesting