magic controller can now also handle sort order posts