Jump to content

Sorting from mysql bug???


eevan79

Recommended Posts

This sorting goes me crazy :).

 

Ok, here is script:

$result = mysql_query("SELECT * FROM " . $table_prefix . "users ORDER BY ".$sort." ".$ascdesc." LIMIT $offset, $users_per_page");

 

$sort is "user_name".

 

And I get following results:

First I get user starting with "K"

than "a", "b" etc.

 

It looks like this:

 

1. Korisnik

2. asdsa

3. test1

4. test2

 

etc...

 

Why I get wrong sorting by username? Other sortings work fine (date, last login etc.)

Link to comment
https://forums.phpfreaks.com/topic/209486-sorting-from-mysql-bug/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.