fixed sorting bug, added misc 2-space indent