fix bug for order sort and sp search limit