Fixed the way things were sorted. For some reason it wasn't portable