adding crude array sorter