notes about complexity about sorting or not sorting for knapsack sum