GNOME Bugzilla – Bug 82931
Sorting relative refs should be invariant if it has a sheet
Last modified: 2004-12-22 21:47:04 UTC
Here's the example sheet: 2 =A1 1 =A2 Select B1:B2 and sort it in ascending order. It should change from 2 1 to 1 2 but doesn't. In 1.0.6, this works as expected.
Created attachment 8713 [details] Example spreadsheet.
This is not a bug. I have intentionally removed this functionality and intend to disable it in 1.0.7. An extra flag was introduced to solve exactly this report, which looks completely rational. However, later on a bug came in where relative reference were changing unexpectedly that stemed from this. After much head scratching we decided that sorting a relative reference should not do anything special. See 59144 for details.
Created attachment 8731 [details] More complicated example
The complicated example definitely does show a bug. Whatever we are doing to the formulas in the first column doesn't make any sense.
head is now the same as 1.0
It looks like we do need the relative reference relocation patch. The trick is that we only need it _sometimes_. As far as I can tell XL uses the heuristic that sorting relative references keeps them invariant if they select a sheet. eg A1 is not corrected for motion (and changes) but foo!A1 is corrected to remain invariant. I'll look into supporting this in 1.1
*** This bug has been marked as a duplicate of 59144 ***