mmikkel / DashCols-Craft

Easily add custom fields to index tables in Craft CMS
MIT License
56 stars 4 forks source link

Entry Types get sorted by id, not name #25

Open lindseydiloreto opened 9 years ago

lindseydiloreto commented 9 years ago

99% sure this is a bug...

If you sort by "Entry Type", you'll notice that it's sorting by the entry type's id, instead of the entry type's name. Obviously, that's not terribly useful. :)

mmikkel commented 9 years ago

Thanks for reporting, @lindseydiloreto. Will look into it.

mmikkel commented 9 years ago

I've been looking into this, and its a difficult one to solve. Craft will actually order on typeId even if I set the Entry Type sort item to type.

I'll need to investigate further into how Craft sorts the index tables internally – this isn't the only issue with custom sorting, so I hope to figure it out. If I can't fix it, I might eventually remove entry types (and a few more fields/field types) from sorting altogether.