{"action":"opened","issue":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2007","labels_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2007/labels{/name}","comments_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2007/comments","events_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2007/events","html_url":"https://github.com/bleroy/OrchardImportTest/issues/2007","id":66134838,"number":2007,"title":"Sort /Admin/Contents/List ContentTypes by Name (instead of Id)","user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-03T12:12:32Z","updated_at":"2015-04-03T12:12:32Z","closed_at":null,"body":"We have a number of content types that are named differently than their\nContentTypeId, and when the content list page displays the options in the list\nfor filtering on content type, it's sorting by Id, not the name, and therefore\nthe sort isn't displaying properly. It is sorting correctly everywhere else\n(the black box where you can create a new instance of a content type, for\ninstance). I was able to fix this by going into the core and making the\nfollowing modifications:  \n  \nOrchard.Web\\Core\\Contents\\Controllers\\AdminController.cs  \nLine #90  \nChange:  \n.ToList().OrderBy(kvp => kvp.Key); to  \n.ToList().OrderBy(kvp => kvp.Value);  \n\nWork Item Details\n--------------------\n**Original CodePlex Issue:**\t[Issue 18117](http://orchard.codeplex.com/workitem/18117)\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tandrerod\n**Reported on:**\tSep 8, 2011 at 6:50 PM\n**Reported by:**\ttjans\n**Updated on:**\tSep 27, 2011 at 6:03 PM\n**Updated by:**\tsebastienros\n**Closed on:**\tSep 27, 2011 at 6:03 PM\n**Closed by:**\tsebastienros\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tandrerod\n**Reported on:**\tSep 8, 2011 at 6:50 PM\n**Reported by:**\ttjans\n**Updated on:**\tSep 27, 2011 at 6:03 PM\n**Updated by:**\tsebastienros\n**Closed on:**\tSep 27, 2011 at 6:03 PM\n**Closed by:**\tsebastienros\n"}}