Sorting and Sorting Tests

Pull request to merge sorting work in to main branch.

Adds in some basic changes to the sorting path, and adds in the necessary testing files.

Currently, testing is broken and tests fail.