Last modified: 2012-08-23 21:48:08 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 T41475, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39475 - Distance sort order isn't numeric
Distance sort order isn't numeric
Status: RESOLVED FIXED
Product: WikiLoves Monuments Mobile
Classification: Unclassified
Browse (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-19 07:02 UTC by Raul Kern
Modified: 2012-08-23 21:48 UTC (History)
2 users (show)

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


Attachments

Description Raul Kern 2012-08-19 07:02:23 UTC
In use my current location -> view as list
the monuments are sorted by distance in following order
1.5, 1.6, 10.2, 10.5, 11.1, and 2.1 km away.
Comment 1 Jon 2012-08-21 00:32:53 UTC
Hi Raul thanks for raising this bug

Just to confirm on the view as list page is the distance button highlighted on sort by or is something else e.g. name selected? I am unable to replicate this and just wanted to rule this out...

Thanks for your feedback!
Comment 2 Raul Kern 2012-08-21 20:28:05 UTC
yep, the distance is selected.

First step is to zoom out on the current location map view, so that monuments 10 km away get displayed.

And then switch to list view.
Comment 3 Jon 2012-08-21 23:31:57 UTC
Hi Raul
Which city are you looking at? I am unable to replicate on San Francisco...

Thanks for your help debugging this.
Comment 4 Jon 2012-08-23 18:26:59 UTC
Ok.. I've been able to replicate but am a little confused with what is happening :)
It seems that somehow the distance becomes a string rather than number. Fix by end of day.
Comment 5 Jon 2012-08-23 18:36:19 UTC
Fixed with https://github.com/wikimedia/WLMMobile/pull/174
toFixed returns a string so this was an oversight..

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


Navigation
Links