Added cattle sorting b ascending and descending order