Sort multiple lists that reference index each other