Simplify Type Checking in sort_collections Function
Issue:
The current implementation of the sort_collections function in the utils.py manually checks for multiple data types (str, float, int, bool) using individual isinstance checks. This can be simplified by grouping these checks into a single isinstance statement, improving readability and reducing redundancy.
Task:
Update the sort_collections function in the utils.py to use a single isinstance check for primitive types.
done
@gabrilito1 There is another instance in the function where the simplification needs to be done. Can you check it and do that again?
yes, done
@AkashS0510 https://github.com/StackGuardian/tirith/pull/187
Thanks @gabrilito1