Fix sorting on multiple levels of indentation