Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 207423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:44:03+00:00 2026-05-11T17:44:03+00:00

SELECT events.title FROM events ORDER BY events.title DESC I’m getting the proper ordering for

  • 0
SELECT events.title 
FROM events 
ORDER BY events.title DESC

I’m getting the proper ordering for all but a couple events at the end of my table.

The encoding on the title table is utf8_general_ci. I’ve tried retyping the the title, hoping it was using some weird russian characters I couldn’t see, but it still appears in the wrong order.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:44:04+00:00Added an answer on May 11, 2026 at 5:44 pm

    Just a wild guess, but maybe some of your titles have some spaces at the beginning.

    If that is your problem, you can use

    Order By TRIM(events.title) DESC 
    

    But that will slow down your query because MySQL won’t be able to use the index on title if you have one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Ruby, I'm trying to do the following. def self.stats(since) return Events.find(:all, :select =>
I have this SQL query about getting the 5 events today: SELECT n.nid, n.type,
As said in the title, I want to select the number of events per
How can I set a select class and other attributes eg:events through the SelectList
I have a query: select event_type, department_name, effective_time, row_number() OVER (PARTITION BY event_type,department_name ORDER
I have a table with a column event_time . How can I select two
I have a fairly simple SQL statement to get some results from a couple
Ok the title isn't a great help I'm sorry but this is what I'm
To clarify the title, in a select statement, in the where clause, I need
I have two tables called 'events' and 'topics' each table can have many comments.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.