Also, I think this makes the sorting clearer. It sorts using y as the first key, and x as the second one.
sorted(result, key=lambda result: (result.globalRect.y, result.globalRect.x))
« Back to merge proposal
Also, I think this makes the sorting clearer. It sorts using y as the first key, and x as the second one.
sorted(result, key=lambda result: (result. globalRect. y, result. globalRect. x))