Last modified: 2010-05-23 17:27:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25198, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23198 - Sort by date broken in Semantic Mediawiki svn (r65007)
Sort by date broken in Semantic Mediawiki svn (r65007)
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-14 19:04 UTC by Mark Dayel
Modified: 2010-05-23 17:27 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark Dayel 2010-04-14 19:04:57 UTC
Sorting a table by date in Semantic Mediawiki svn (r65007) (on Mediawiki 1.16.0Beta2 svn r65007) does not produce correct date order.  Reverting to prior Semantic Mediawiki svn (r63846) fixes the problem.  (note:  I'm sorting by a date propertly, and there are multiple date entries per page. r63846 handles this fine)
Comment 1 Markus Krötzsch 2010-05-23 17:27:13 UTC
I cannot reproduce this problem on our sites. Please have a look at http://sandbox.semantic-mediawiki.org/wiki/Property:Submission_deadline for an example query where one entry has two dates.

Of course, when you have more than one date per page, the page can still be sorted by only one of them. Which one this is is not defined by SMW or SQL, so you cannot expect a deterministic result in such cases. The page will appear in only one of the positions that its various dates indicate. This is why it is not suggested to sort by a property value that is set many times for single pages; but this is not specific to Type:Date.

Another possible reason for sorting problems in an upgrade is that some internal format change has occurred that was not applied yet to your DB. In this case, pages that are stored again should sort properly. Updating all pages can be effected by using the Repair button in Special:SMWAdmin.

I close this bug as WORKSFORME. Feel free to re-open if the problem persists. Please also provide a URL for the problem in this case (you can use the sandbox to reproduce it).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links