Hi Bernhard,

Assuming that there's a standard naming system to this set of pages, i.e.
it's always "[number] [other stuff]", one possibility is to have the
template use #explode to get the number, then store that separately with a
property of type "Number". Then you could sort on that property.

-Yaron

On Fri, Mar 20, 2015 at 4:57 AM, Krabina Bernhard <krab...@kdz.or.at> wrote:

> Dear all,
>
> I understand that sorting results of a query depends on the type of
> property. So if you want to sort numbers, the property used for sorting has
> to be of type number, otherwise sorting will be alphabetical (1, 10, 2, 20,
> 3, 4,...)
>
> The problem is that if a property is of type page, SMW assumes that page
> name are alphabetical, and probably in 90% of the cases page names don't
> start with numbers. But there are cases, where I want numbers to be
> clickable...
>
> Could the order= parameter be enhanced to something like
> |order=numericasc
> |order=numericdesc
> to support numerical sorting of text/page-properties?
>
> regards,
> Bernhard
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Semediawiki-user mailing list
> semediawiki-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>



-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to