writed simple sort method into function sort_array;
some errors during execution of proccess + uncompleted class function interaction, need more info