Cp-10

Added features of sorting and deleting (though not really deleting). 
my bad, it was a copy paste that didn't give me an error so I didn't look at it closely. Changing