Changed order rule when creating groups on plot.profiles