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
@wfrench  please merge.