Added del and sort for arraylists.