cleaned up title sorting