Fixed bug in sorter. Wasn't iterating when i and l were next to each other.