sort orders array before implode it for get correct script list