Update sorting, adding check if there is no flag for asc or desc, update "cut" action for mode 5