small fix in sorter and add RPC quality options