More sorting/mongoose tweaks