Sort array in fun order - in process