fix bug: sort sp when select sp for order