adding result sorter script