Debugging sorted list