Forum Discussion
happylinenco
Jul 21, 2022Copper Contributor
Sorting differences on PC vs Mac
Hello, I am having an issue with sorting. I am on Mac and my colleague is on PC. We have a file with product names that is being sorted differently on the two devices in Excel. On Mac it is...
Riny_van_Eekelen
Jul 21, 2022Platinum Contributor
happylinenco Both my Mac and PC sort these text exactly the same, namely how you mentioned it in your example for the Mac. "A-WB" sorts before "A-WBC" as it should.
happylinenco
Jul 21, 2022Copper Contributor
Riny_van_Eekelen
Please could you try the following in that case. I can see the A- example is working correctly, so maybe this wasn't the best example. Below is the actual product names which are being sorted differently. The WB and WBC versions are being sorted differently on PC and Mac.
CASTLEUNICO-PNK-PIL-HL01-STD
CASTLEUNICO-PNK-QTH-HL01-ONE
CASTLEUNICO-PNK-STI-HL01-5025
CASTLEUNICO-PNK-WBC-HL01-90120
CASTLEUNICO-PNK-WB-HL01-90120-23
CASTLEUNICORN-PNK-PJS-HL02-34
CASTLEUNICORN-PNK-PJS-HL03-45
- Riny_van_EekelenJul 21, 2022Platinum Contributor
happylinenco Ah, I see. Get the same result and can't explain why. The "-023" should not affect that.
WB-H consists of character codes 87, 66, 45 and 72 (both on Mac an PC)
WBC- consists of character codes 87, 66, 67 and 45 (both on Mac an PC)
When sorting, WB-H should become before WBC-, just like the Mac does it. On my PC it gets sorted incorrectly. Haven't been a PC user very long, and never came across (or noticed) this issue. Looks like a bug in the PC version.
- happylinencoJul 21, 2022Copper ContributorRiny_van_Eekelen thanks for trying and confirming it's not just us ha!
We have been able to narrow it done, like you, to what comes after WB- or WBC- respectively. If the following letter is either A or B (i.e. above C in the alphabet) it works fine. Letters lower in the alphabet (D onwards) the sorting is incorrect.
Very strange!
Anybody has come across this issue before that can assist?- mtarlerJul 21, 2022Silver Contributorwhat about the - earlier in the name comparing
CASTLEUNICORN- vs
CASTLEUNICO-
according to your logic that R is after B so should also cause sorting issue?