Add sorting to sunspot