Fix sorting in admin/nodes#index

MongoMapper requires a real object id when performing set operations.
This also fixes sorting for content templates and page templates.

ping @arvida