<div dir="ltr"><div><div>Thanks Moritz for explaining that.<br><br></div>I suspected that there was something incorrect with my expectations, but I'm glad that (1) was caught.<br><br></div>Steve<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 27, 2017 at 10:04 AM, GRASS GIS <span dir="ltr"><<a href="mailto:trac@osgeo.org" target="_blank">trac@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">#3352: Behavior of v.sort.points<br>
--------------------------+---<wbr>----------------------<br>
Reporter: spawley | Owner: grass-dev@…<br>
Type: defect | Status: closed<br>
Priority: normal | Milestone: 7.4.0<br>
Component: Addons | Version: unspecified<br>
Resolution: fixed | Keywords:<br>
CPU: Unspecified | Platform: Linux<br>
--------------------------+---<wbr>----------------------<br>
<br>
Comment (by mlennert):<br>
<br>
Replying to [comment:2 mlennert]:<br>
> Replying to [ticket:3352 spawley]:<br>
><br>
> > (2) even if 'cat' is the first column, sorting by an integer column<br>
does not appear to be sorting point datasets in numeric order. Example<br>
from the nc_spm location:<br>
> ><br>
> > v.sort.points input=firestations@PERMANENT output=firestations_sorted<br>
column=ID<br>
> ><br>
> > The order of the points based on opening the attribute table, and the<br>
relationship between the 'ID' column and 'cat' appears to be the same as<br>
the original dataset, where 'ID' was not in ascending order.<br>
><br>
> This is not a bug: cat values are conserved, i.e. the same points have<br>
the same cat value in the input and the output. However, points are in a<br>
different order in the file after v.sort.points. Category values of<br>
objects do not define order.<br>
<br>
Try<br>
<br>
<br>
{{{<br>
d.vect map=firestations icon=basic/circle size=0.5 size_column=ID<br>
d.vect map=firestations_sorted icon=basic/circle size=0.5 size_column=ID<br>
}}}<br>
<br>
and compare the two maps to see the difference.<br>
<br>
Moritz<br>
<br>
--<br>
Ticket URL: <<a href="https://trac.osgeo.org/grass/ticket/3352#comment:3" rel="noreferrer" target="_blank">https://trac.osgeo.org/grass/<wbr>ticket/3352#comment:3</a>><br>
GRASS GIS <<a href="https://grass.osgeo.org" rel="noreferrer" target="_blank">https://grass.osgeo.org</a>><br>
<br>
</blockquote></div><br></div>