Case insensitive ORDERBY in wpquery

  1. As stated above, your orderby parameter should be set to meta_value, not restaurant.

  2. Using phpMyAdmin or some other tool, look at your database. With any newer installation of WordPress, your tables should have a collation of utf8mb4_unicode_ci. That means that the table is storing its data in UTF-8 4-byte unicode character set. That “ci” at the end means “case insensitive”.

If your collation is not correct, then you may need to convert your data. This is not as easy as it sounds all the time, so make sure you get a quality backup of your database first.