Update lookup only after sorting files
This should address #6050 (closed) : the lookup must be computed after the sort otherwise there is a desynchronization.
The sort was introduced to allow insertion of files inside an existing BSA without having to unpack / repack it.
Edited by Cédric Mocquillon