#9 added sort parameter
#9 sorting algorithm was separated to utils.dojo module