updated sort stuff worked with jane