spsid_search: sort the attributes in output