Only call Array.sort() if sort columns/keys are specified

Fixes issue #87
Merge branch 'only-sort-when-needed' into dev