My code basically checks a particular triangle in a 3xn array and orders it in ascending order, triangle by triangle. But the problem I am facing right now is, my code is apparently creating duplicates and overwriting data. Please help me figure out the bug. Cheers. My code basically checks a particular triangle