home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
SQLite sorting of DateTime values..... how?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anonymous" data-source="post: 6634"><p>Well I'll be dammned if you're not right. It doesn't work. </p><p></p><p><a href="http://www.sqlite.org/datatype3.html" target="_blank">The manual explicitly states</a>:</p><p><em>An ORDER BY clause that is part of a SELECT statement may be assigned a collation sequence to be used for the sort operation explicitly. In this case the explicit collation sequence is always used. Otherwise, if the expression sorted by an ORDER BY clause is a column, then the default collation type of the column is used to determine sort order. If the expression is not a column, then the BINARY collation sequence is used.</em></p><p></p><p>I've even tried creating the column with a COLLATE NOCASE or REVERSE and it doesn't have any effect on the sort order. WTF? I know I've done this before and it has worked. Is our expression not a column? Clearly it is.</p></blockquote><p></p>
[QUOTE="Anonymous, post: 6634"] Well I'll be dammned if you're not right. It doesn't work. [url=http://www.sqlite.org/datatype3.html]The manual explicitly states[/url]: [i]An ORDER BY clause that is part of a SELECT statement may be assigned a collation sequence to be used for the sort operation explicitly. In this case the explicit collation sequence is always used. Otherwise, if the expression sorted by an ORDER BY clause is a column, then the default collation type of the column is used to determine sort order. If the expression is not a column, then the BINARY collation sequence is used.[/i] I've even tried creating the column with a COLLATE NOCASE or REVERSE and it doesn't have any effect on the sort order. WTF? I know I've done this before and it has worked. Is our expression not a column? Clearly it is. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
SQLite sorting of DateTime values..... how?
Contact us
RSS
Top
Bottom