Small updates to sort. will be stepping back to work on the previously made functions it uses, which i will put into their own c modules.