Initial sorting working, not even close to being finished