<p>Have you tried using the Sort option in the mmqgis plugin? I think that this will save your sort permanently.</p><p><br></p><p>Frank.<br><span style="font-family:Verdana,Arial;font-size:8pt" mce_style="font-family:Verdana,Arial;font-size:8pt"><br><br><br><br><hr><br><b>From: </b>tech_dev@wildintellect.com<br><b>Sent:</b>2012-03-06 19:33:05<br><b>To: </b>qgis-user@lists.osgeo.org<br><b>Cc: </b><br><b>Subject:</b> Re: [Qgis-user] feature or bug<br></span>On 03/06/2012 09:05 AM, M.E.Dodd wrote:
<br>> When looking at the attribute table I want the first column in numeric order (they are the reference number of a set of features and I want to match by this column in a spreadsheet to other data and if they are in order this is easier, can do it without them being in order but more of a pain).  Thought I had tried this and it worked fine earlier with just a few features but now that I have entered nearly 1000 features it has decided that it won't sort and save.  Well it will sort if I click on the column head but then when saving the shapefile the .dbf is not in numeric order, instead its in the order that I digitised the data.  Have tried this several different ways and tried adding extra dummy features and saving again and with different filenames but still they appear in sorted order in the attribute table but then not in sorted order when you look at the .dbf.  Also you can sort, do the 'save edits', then close that screen and reopen it and they will be unsorted again. 
<br> Not entirely sure if this is supposed to happen or if it is a bug.
<br>> 
<br>> 
<br>>
<br>
<br>This has to do with the way a shp file stores the data to begin with,
<br>once the order is set it's not easy to change since it's also the order
<br>matched to the shx and shp portions.
<br>
<br>That said though you don't need to do the matching yourself, the Join
<br>tool in the properties of the layer will take care of find the matches
<br>as long as the same key exists in both your attribute table and the
<br>table of additional data you want to add on. Note: I think this tool
<br>currently works for csv or dbf files, so save your additional data into
<br>that format with your spreadsheet app.
<br>
<br>Thanks,
<br>Alex
<br>
<br>_______________________________________________
<br>Qgis-user mailing list
<br>Qgis-user@lists.osgeo.org
<br>http://lists.osgeo.org/mailman/listinfo/qgis-user</p>