If you find yourself in need of a single column for sorting by last name in a database system like WordPress or any other PHP application, consider this simple suggestion: Instead of two separate columns for first and last names, combine them into one 'Name' column with the format:
<td>last-name first-name last-name</td>
By structuring the data this way, sorting by last name becomes possible within the same column.
To achieve this, include the last name only once as follows:
<span class="display-none">last-name</span>
While this method may be considered a workaround or hack, it provides a quick and effective solution to the problem at hand.