https://bugzilla.wikimedia.org/show_bug.cgi?id=57061

       Web browser: ---
            Bug ID: 57061
           Summary: Numerical sorting doesn't work for inline query
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I have a property called "page" which has "[[has type::number]]" set for it.
It's supposed to represent a page number in a book.

I have several MW pages which have "page" set for them, like "[[page::100]]".

When I do an inline #ask query with "sort=page", it sorts by page
alphabetically instead of numerically.

The test case on the original wiki is here:

http://trans.rpground.ru/index.php?title=Test

It reproduces on the sandbox wiki:

http://sandbox.semantic-mediawiki.org/wiki/Sorting_test

It seems to be dependent on property's name, "page" always sorts as string even
if it's marked as number. Replacing property name for "pagenum" solves the
problem, but it looks ugly.

The problem didn't exist on a SMW version from a year or so ago. It only
appeared after I updated to version for 1.21 MW.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to