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="waeberd" data-source="post: 5495" data-attributes="member: 10343"><p>Thanks ojo,</p><p></p><p>That's exactly what I thought too and your solution definitely works fine!</p><p></p><p>In the meantime I've found out that in-memory sorting works cool in my case, so I will stick to that.... if it gets too slow I will do a database-SQL sort!</p><p></p><p>The other problem with SQLite sorting is that SQLite simply does an strict ASCII sort (so items beginning with lowercase 'a' appear after items with uppercase 'Z', like this: "ABBA", "YES", "ZAPPA", "abba2"... )</p><p></p><p>Anybody has an idea of how to influence the SQLite sort order?</p><p>Workaround would be to have an uppercase version of the sort field stored in the table (to make sure the index can be used).</p><p></p><p>This seems too complicated to me.... so I'll stick to in-memory sorting for now!</p><p></p><p>Thanks again,</p><p></p><p>Daniel</p></blockquote><p></p>
[QUOTE="waeberd, post: 5495, member: 10343"] Thanks ojo, That's exactly what I thought too and your solution definitely works fine! In the meantime I've found out that in-memory sorting works cool in my case, so I will stick to that.... if it gets too slow I will do a database-SQL sort! The other problem with SQLite sorting is that SQLite simply does an strict ASCII sort (so items beginning with lowercase 'a' appear after items with uppercase 'Z', like this: "ABBA", "YES", "ZAPPA", "abba2"... ) Anybody has an idea of how to influence the SQLite sort order? Workaround would be to have an uppercase version of the sort field stored in the table (to make sure the index can be used). This seems too complicated to me.... so I'll stick to in-memory sorting for now! Thanks again, Daniel [/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