python/sepolicy: Make policy files sorting more robust

The sorting order seems to be fragile because '100' < '99', so the policy
filename needs to be parsed in order to extract the version as an integer and
sort according to it.

Based on idea from Nicolas Iooss <[email protected]>

Signed-off-by: Petr Lautrbach <[email protected]>
1 file changed