julians cl sorting code