Title: Drop-down Sort Question
Last modified: November 17, 2021

---

# Drop-down Sort Question

 *  Resolved [bendtho](https://wordpress.org/support/users/bendtho/)
 * (@bendtho)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/drop-down-sort-question/)
 * Hello,
 * First I’d like to say that I’ve been using this plugin for years, and have championed
   it to many people. Love it, and keep up the great work.
 * Here’s my question: when importing tables, there is a drop down for when you 
   are appending to or replacing an existing table that is sorted by ID number. 
   Is there any way for me to adjust the backend code of the plugin to make that
   list be sorted by [table name] rather than [ID]? I have a ton of tables that 
   aren’t in any particular order when sorted by ID, which makes it difficult updating
   them sometimes. Being able to sort by table name instead would be a massive help.
   Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/drop-down-sort-question/#post-15077934)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I see what you mean, but unfortunately, I can’t see an easy (say just a short)
   code modification. Essentially, [this foreach loop](https://github.com/TobiasBg/TablePress/blob/master/views/view-import.php#L170-L181)
   would have to be modified (e.g. the data would have to be saved to a temporary
   list, which is then sorted).
 * I do have a slightly different idea though: For TablePress 2.0 which will be 
   published soon, I plan to convert this simple dropdown into a dropdown with live-
   search and auto-complete (so that you can start typing the name, for example),
   to find and select it. Maybe that’s something to wait for? 🙂
 * Regards,
    Tobias
 *  Thread Starter [bendtho](https://wordpress.org/support/users/bendtho/)
 * (@bendtho)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/drop-down-sort-question/#post-15078076)
 * Thank you for the reply, and your planned new functionality sounds equally as
   good. I’ll be happy to wait on that – thanks!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/drop-down-sort-question/#post-15078437)
 * Hi,
 * great! Good to hear that this will be helpful!
 * Best wishes,
    Tobias   P.S.: In case you haven’t, please rate TablePress [here](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Drop-down Sort Question’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/drop-down-sort-question/#post-15078437)
 * Status: resolved