My brain decided to stop working this morning. I need a MySQL and SQLite compatible query that will allow me to batch update the "display_order" column of a table based on sorting by another column.
For example, say I have the following fields: display_order, first_name, last_name, date_created. I'd like to say "sort by last_name and update display_order to be sequential".
FYI, the database is much more complex than just those fields, and things were so poorly designed that complex sorting on the fly takes decades. That said, we need to get the data in order for a given report,transaction, etc ahead of time so that a straight "SELECT * FROM tbl ORDER BY display_order" works.
Best.