Updating `array.sort()` to sort `Booleans` based on numerical representation to group separately from `Strings`