To me, it’s easier to think of le as meaning “for the purpose of” in sentences like this, because this definition works with lots of different kinds of sentences that use le in a similar way.
An bhfuil éinní le n-ithe agat? – Have you got anything to eat? (for the purpose of eating)
Ní raibh faic le n-ól. – There was nothing to drink. (for the purpose of drinking)
An bhfuil pioc le feiscint anso? – Is there nothing to see here? (for the purpose of seeing)
Of course, “in order to” works in the particular sentence that you posted, but “for the purpose of” works in not just your sentence, but in lots of sentences that use le in that way – it works for me, anyway.