Remove use of sort flag so this works in php 5.3