array sort function added;
Merge branch 'dev'