fix order problem when search sp