Added support for RMSD sort