Handle sorting of slug based on sanity. This should really be easier.