Fix linux sort bug

Unit tests all passing on OSX and buildbot.

Turned out it was not sort related.

http://buildbot.oceanobservatories.org:8010/builders/mi_test/builds/541
@jamie-cyber1 please merge.