Answers.Body: <p>The "All types" filter button would be sweet, but as far as I know, there's no way to implement that without hacking the CP w/ JS, as Craft doesn't expose any relevant hooks. I'd be a bit cautious with stuff like that, especially now with 3.0 on the horizon.</p>
  
  <p>Shameless plug:
  The <a href="https://github.com/mmikkel/DashCols-Craft" rel="nofollow">DashCols</a> plugin (which I wrote) will let you display and sort on entry type. Alas – DashCols uses <code>typeId</code> for sorting, not the <em>name</em> like you want. Having the option to sort on the types' ID <em>or</em> name would be a cool feature, though – I'll try to get that in there some day and will update this answer if/when I do.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-15T07:15:44.410Z
Answers.Text: Yeah - I had the same issue with `typeId`, couldn't for the life of me work out how to sort by `name`. In the end I went with `typeId` but just made sure the order of the Entry Types was alphabetical...
Answers.UserDisplayName: Josh Angell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-14T10:40:23.140Z
Answers.LastActivityDate: 2015-04-14T10:40:23.140Z
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Answers.Body: <p>I made a small plugin that nests Entry Types under their section in the sources list that might be good enough for what you're after:</p>
  
  <p><a href="https://gist.github.com/mdcpepper/548fd04939e040507960" rel="nofollow">https://gist.github.com/mdcpepper/548fd04939e040507960</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-14T10:22:04.053Z
Answers.Text: Excellent thanks Mike - I'll take a look and get back to you!
Answers.UserDisplayName: Josh Angell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-15T07:32:47.310Z
Answers.Text: Great - this is doing enough for what I need, not quite the UI I was after but it does the job - thanks Mike :)
Answers.UserDisplayName: Josh Angell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-14T10:02:30.867Z
Answers.LastActivityDate: 2015-04-14T22:45:03.730Z
Answers.LastEditDate: 2015-04-14T22:45:03.730Z
Answers.UserDisplayName: Mike Pepper
Body: <p>What I am trying to do is adjust the entry index page to be more specific for our use case, I have already sorted out extra columns but I want to sort or filter by entry type. Of course I can already sort by <code>typeId</code> using <code>modifyEntrySortableAttributes</code> but this is not ideal.</p>
  
  <p>I either want to be able to sort by an entry type's name using <code>modifyEntrySortableAttributes</code> or better still insert another filter button of all the types in-between the status filter and the search bar, see mock-up below.</p>
  
  <p><img src="https://i.sstatic.net/rmCKd.png" alt="enter image description here"></p>
  
  <p>Any help greatly appreciated!</p>
  
Tags: <plugin-development><control-panel>
Title: Can I add another filter option to element index views?
ThreadText: # Can I add another filter option to element index views?
  
  (Asked by: username_0 on 2015-03-13)
  
  What I am trying to do is adjust the entry index page to be more specific for our use case, I have already sorted out extra columns but I want to sort or filter by entry type. Of course I can already sort by `typeId` using `modifyEntrySortableAttributes` but this is not ideal.
  
  I either want to be able to sort by an entry type's name using `modifyEntrySortableAttributes` or better still insert another filter button of all the types in-between the status filter and the search bar, see mock-up below.
  
  ![enter image description here](https://i.sstatic.net/rmCKd.png)
  
  Any help greatly appreciated!
  
  **Tags:** plugin-development, control-panel
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-04-14. Score: 5 | Accepted answer
  
  I made a small plugin that nests Entry Types under their section in the sources list that might be good enough for what you're after:
  
  <https://gist.github.com/mdcpepper/548fd04939e040507960>
  
  > **Comments:**
  > **username_0**: Excellent thanks username_2 - I'll take a look and get back to you!  
  > **username_0**: Great - this is doing enough for what I need, not quite the UI I was after but it does the job - thanks username_2 :)  
  
  ---
  
  ### Answer by username_1 on 2015-04-14. Score: 1
  
  The "All types" filter button would be sweet, but as far as I know, there's no way to implement that without hacking the CP w/ JS, as Craft doesn't expose any relevant hooks. I'd be a bit cautious with stuff like that, especially now with 3.0 on the horizon.
  
  Shameless plug:
  The [DashCols](https://github.com/mmikkel/DashCols-Craft) plugin (which I wrote) will let you display and sort on entry type. Alas – DashCols uses `typeId` for sorting, not the *name* like you want. Having the option to sort on the types' ID *or* name would be a cool feature, though – I'll try to get that in there some day and will update this answer if/when I do.
  
  > **Comments:**
  > **username_0**: Yeah - I had the same issue with `typeId`, couldn't for the life of me work out how to sort by `name`. In the end I went with `typeId` but just made sure the order of the Entry Types was alphabetical...  
  
  ---
  
  