KingHarem16
KingHarem16
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
ok will do
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
really appreciate the help and the educational way u showed it to me
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
but really great stuff man
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
yep and i missed that point completly
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
and the due one would be at the start to begin with
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
yeah before i had a approach where i didnt even check if the date is due because i thought it wouldnt be necessary bc im already sorting after a descending date
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
ah very nice
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
lol
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
??
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
var sorted = list .OrderByDescending(x => IsDue(x) && x.Punctual) .ThenBy(x => x.DesiredShipmentDate) .ToList();
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
ok now im lost xD
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
wait
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
var sorted = list .OrderByDescending(x => IsDue(x)) .ThenBy(x => x.DesiredShipmentDate) .ToList();
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
yep
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
we dont order after the DesiredShipmentDate after the dueDate
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
before the thenBy(x => x.DesiredShipmentDate)
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
i would add another .ThenByDescending(x => x.Punctual)
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
i would orderBy(x => x.DesiredShipmentDate)
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
ok alright
96 replies
CC#
Created by KingHarem16 on 8/31/2023 in #help
✅ Specific Sorting Algorithm
so if the shipment date is due, then if the punctual flag is true then order the records with the same conditions in a ascending order by the shipment. If the shipment date is not due only by the shipment date in ascending order
96 replies