Deleted sorting function because it took too long