Some sorting functions implemented in ACS