Sorting of contenttype in backend

Patch suggested by trigau in #948