Ad
  • Custom User Avatar

    You are probably getting tabs and spaces somehow mixed up in your solution. The problem is not related to sorting.

    Check in your IDE if you use spaces and tabs for indentation consistently. Initial solution does indeed use both (and it's not good), but you have to be really unlucky to get bitten by it in such small stub :)