Did a spreadsheet sort move eastings to the wrong survey points?
Reproduce a one-column sort that passes count and range checks, then verify complete point records before exporting to CAD.
Sorting eastings alone changes the 301–302 baseline from 5.000 m to 4.242641 m while preserving every column total and coordinate range.On this page
Reproduce a plausible file that is wrongUnderstand which checks cannot catch itCheck geometry independentlyMake the intended sort on a fresh copyReconcile the saved CSV, then reorder its fieldsSort complete point records together, then compare each identifier’s coordinates and attributes with the untouched source. Sorting just the easting column can leave a valid five-field CSV in which the numbers belong to different points. A successful parse, the original point count and unchanged coordinate limits cannot prove that the records survived.
Reproduce a plausible file that is wrong
Use these three synthetic PNEZD records in a local metric grid. The elevations use one local vertical datum. The original file is the reference for this transfer check; the exercise does not establish the field accuracy of its observations.
301,6200.000,1400.000,12.400,Control nail
302,6203.000,1404.000,12.100,Gate hinge
303,6196.000,1403.000,12.300,Wall corner
A technician wants the list arranged west to east. Suppose only the three easting cells are selected and sorted from smallest to largest, while every other column stays in its original position. The damaged file becomes:
301,6200.000,1400.000,12.400,Control nail
302,6203.000,1403.000,12.100,Gate hinge
303,6196.000,1404.000,12.300,Wall corner
The gate hinge has moved 1.000 m west and the wall corner 1.000 m east. Neither change came from a new observation. Their northings, elevations and descriptions still look familiar, which can make a quick visual inspection reassuring.
Understand which checks cannot catch it
| Check | Original | Damaged copy |
|---|---|---|
| Point records | 3 | 3 |
| Unique identifiers | 3 | 3 |
| Minimum northing (m) | 6196.000 | 6196.000 |
| Maximum northing (m) | 6203.000 | 6203.000 |
| Minimum easting (m) | 1400.000 | 1400.000 |
| Maximum easting (m) | 1404.000 | 1404.000 |
| Sum of eastings (m) | 4207.000 | 4207.000 |
In fact, the contents of every individual column are unchanged as collections of values. Even comparing sorted lists of northings and sorted lists of eastings separately would pass. What changed is the association between an ID and its easting. The coordinate-range check remains useful for outliers, but this example requires a record-level comparison.
Checking only point 301 also passes because its easting did not move. Include points affected by the operation, and reconcile every record before accepting a delivery.
Check geometry independently
The original vector from 301 to 302 is +3.000 m north and +4.000 m east. Its horizontal distance is √(3² + 4²) = 5.000 m. After the partial sort, that vector becomes +3.000 north and +3.000 east, giving √18 = 4.242641 m, rounded to six decimals. The baseline is about 0.757359 m shorter.
The original 301–303 vector is −4.000 north and +3.000 east, also 5.000 m long. In the damaged copy it becomes −4.000 north and +4.000 east, giving √32 = 5.656854 m. One line shortened while another lengthened; there is no single scale factor that repairs the file.
These distances diagnose the example. For the complete job, compare each point’s full record rather than hoping a few baselines intersect every damaged row. Check elevation and description too: a partial sort of either column can leave horizontal geometry unchanged.
Make the intended sort on a fresh copy
Return to the unmodified source or a verified earlier version. In Excel, select the complete data range, including all five fields and every point row, and sort by the numeric easting field. Identify the header correctly if one is present. Microsoft’s sorting guidance distinguishes sorting part of a range from expanding the selection; for these linked point fields, the selection must include the whole record. An Excel table can help keep related columns together, provided its boundary actually contains the complete dataset.
The correct ascending-easting result is:
301,6200.000,1400.000,12.400,Control nail
303,6196.000,1403.000,12.300,Wall corner
302,6203.000,1404.000,12.100,Gate hinge
The record order is now 301, 303, 302. Each ID retains its original four accompanying fields. Sorting the damaged file back by point number cannot recover the associations: those IDs never left their original rows. If a trustworthy original is unavailable, retain the suspect file separately and obtain another source export before treating its coordinates as recovered.
Reconcile the saved CSV, then reorder its fields
Read the saved output with a CSV-aware reader, not a visual spreadsheet selection. For this example, IDs are unique, so build an ID-to-record comparison against the original. Require the same IDs, exactly one occurrence of each and matching northing, easting, elevation and description for each ID. A simple set of IDs alone is insufficient. Where IDs repeat, resolve their identities using source provenance before using a dictionary that would silently discard repeated keys.
If the transfer permits numerical formatting changes, compare coordinates with the project’s stated decimal rules while retaining an exact source copy. If no values were meant to change, exact parsed field strings provide a stricter check. A different row order is allowed here; a different record is not.
After this reconciliation, use the point CSV formatter to convert the corrected PNEZD list to PENZD when required. Point File Desk changes field order and validates the supplied fields; it has no original observation against which to detect this one-column shuffle. The expected PENZD gate-hinge record is:
302,1404.000,6203.000,12.100,Gate hinge
Inspect that downloaded record and the stored point in a test CAD import. Confirm all three points and both 5.000 m baselines against the source. Preserve the original collection sequence separately if it controls linework; a valid west-to-east point list does not preserve a boundary-walking or feature-string order.