inert sort and unit test