fixed sort, using native implementation