fixed sort order on sqlite