3

Added a lot of sorting code.