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

Fixes issue #87