basic byte and numeric sort

includes tests for numeric sort

this implements #219 
After fixing this, it should build correctly.