php 5.3 compatilble case insensitive repository sorting