Last modified: 2013-01-29 01:42:49 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 T11396, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9396 - Install Extension:Sort on all Wikimedia projects
Install Extension:Sort on all Wikimedia projects
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
: 9395 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-23 04:35 UTC by Jason Spiro
Modified: 2013-01-29 01:42 UTC (History)
6 users (show)

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


Attachments

Description Jason Spiro 2007-03-23 04:35:44 UTC
In response to my feature request (bug 4870) Rob Church kindly added a <sort>
feature to MediaWiki.  Since AFAICT it's not enabled on enwiki, I bet it's not
other Wikipedias / Wikibooks / etc.  It would be great if you could enable it.

Rob, I'm cc'ing you.  Hope you don't mind.
Comment 1 Yonatan Horan 2007-03-23 04:44:17 UTC

*** This bug has been marked as a duplicate of 9395 ***
Comment 2 Jason Spiro 2007-03-27 03:23:09 UTC
That bug is about enwiki.  This bug is about all other MediaWiki wikis.  Reopening.
Comment 3 Yonatan Horan 2007-03-27 04:04:36 UTC
If you're asking for it to be enabled on all wikis then there shouldn't be a
separate bug for it being enabled on enwiki. You might as well add the request
for all other wikis in the other bug.
Comment 4 Rob Church 2007-03-27 14:52:44 UTC
*** Bug 9395 has been marked as a duplicate of this bug. ***
Comment 5 Jason Spiro 2007-12-03 00:42:26 UTC
Who is a person with appropriate sysadmin powers that I could reassign this to?  :)
Comment 6 Mike.lifeguard 2009-03-19 16:54:00 UTC
(In reply to comment #5)
> Who is a person with appropriate sysadmin powers that I could reassign this to?
>  :)
> 

Do we even know if the code is ready to be deployed? If not, then the shell keyword is pointless, since more coding is needed.
Comment 7 Aaron Schulz 2009-09-12 19:34:22 UTC
Seems to use natsort()...

$a = array(-5,-2,3,9);
natsort($a);
Array ( [1] => -2 [0] => -5 [2] => 0 [3] => 3 [4] => 9 )

...which is odd...

Also, the is no reverse natsort(), so it just reverses the items afterwards.
Comment 8 Aaron Schulz 2009-09-12 19:36:03 UTC
Gah, typo in test input above. Corrected:

C:\Users\Aaron>php -r "$a=array(-5,-2,0,3,9); natsort($a); print_r($a);"
Array
(
    [1] => -2
    [0] => -5
    [2] => 0
    [3] => 3
    [4] => 9
)
Comment 9 Aaron Schulz 2009-09-12 19:41:24 UTC
The above issue is due to a lack of context. It should be specified in the <sort> tag it it is numeric or alphanumeric.

Also, the array_reverse() seems excessive; instead the array_keys should be done manually, and in a reverse for loop in that case.
Comment 10 JeLuF 2010-03-27 09:17:43 UTC
Closing for now.

Once the issues pointed out by Aaron are solved, each wiki community should decide whether they consider this extension as useful.
Comment 11 Jason Spiro 2011-02-27 19:30:32 UTC
After those problems are fixed, is there any reason why any wiki community wouldn't want a <sort> extension?  :)  Those who don't want sorted lists can simply not use the <sort> tag.
Comment 12 Jason Spiro 2011-02-27 19:32:29 UTC
Once Rob fixes those problems, is there any reason why any wiki community wouldn't want a <sort> extension?  :)  Those who don't want sorted lists can simply not use the <sort> tag.
Comment 13 Jason Spiro 2011-02-27 19:33:36 UTC
Once Rob fixes those problems, is there any reason why any wiki community wouldn't want a <sort> extension?  :)  Those who don't want sorted lists can simply not use the <sort> tag.
Comment 14 Bawolff (Brian Wolff) 2011-02-28 01:19:17 UTC
(In reply to comment #13)
> Once Rob fixes those problems, is there any reason why any wiki community
> wouldn't want a <sort> extension?  :)  Those who don't want sorted lists can
> simply not use the <sort> tag.

As an aside, I don't think Rob is actively doing any mediawiki dev work at the moment (or for quite some time).
Comment 15 Andre Klapper 2012-12-19 14:00:04 UTC
WONTFIX as long as comment 7 isn't handled which might be worth a separate bug report.
Comment 16 Jason Spiro 2013-01-29 01:24:59 UTC
(In reply to comment #15)
> WONTFIX as long as comment 7 isn't handled which might be worth a separate
> bug report.

Andre, I just filed a separate bug report.  Bug 44451:  "Extension:Sort doesn't handle negative numbers well; maybe it needs a special 'numeric mode'."

But Extension:Sort was designed for alphabetic sorting, which is fine for ordinary use cases like "See also" lists.  Why do you want numeric sorting?  And are you sure you want this bug to remain WONTFIX just because the extension is optimized for alphabetic sorting?
Comment 17 Bawolff (Brian Wolff) 2013-01-29 01:34:19 UTC
note sorting multilingually properly is hard. I personally think it would be nice if such an extension used the collation class to sort stuff (at least by default) in order to be consistent with categories.

as for wontfix-once (and if) this extension is modified to meet above criticism it can be reopened easily enough.
Comment 18 Jason Spiro 2013-01-29 01:42:49 UTC
People can keep on providing more requirements for Extension:Sort.  But it is what it is.  It was designed to handle the most common use cases, such as "See also" lists.  You can install it on enwiki if you like, and enjoy its current (useful) functionality.  Or you can go without it.  :)

I'm not the maintainer.  I'm not even a contributor.  But I think that if you install it, then it's much more likely that contributors will step up and add the additional features you want.

Please do not file Extension:Sort feature requests here.  Instead, please file them at <https://bugzilla.wikimedia.org/enter_bug.cgi?product=MediaWiki%20extensions&component=Sort>.

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


Navigation
Links