Dear Markus and Yaron,

of course, saving an extra property is an option (I will choose), but I think 
that SMW should have a more convenient solution built in than saving extra 
properties...

regards,
Bernhard

----- Am 20. Mrz 2015 um 18:06 schrieb markus mar...@semantic-mediawiki.org:

> Hi Bernhard,
> 
> Why not just define a Number property for such pages and use this for
> sorting? If this does not work for you, then you could set the SORTKEY
> of the pages to something like 000042 (with sufficiently many 0s to
> cover all numbers).
> 
> Cheers,
> 
> Markus
> 
> On 20.03.2015 15:47, Yaron Koren wrote:
>> 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
>> <mailto: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
>>     <mailto: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

------------------------------------------------------------------------------
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