Sort array in fun order - completed