When sorting in Python, if two or more items have the same value, Python uses a tie breaker to determine their order. The default tie breaker is to compare the items' memory addresses. However, you can specify a custom tie breaker function using the key parameter in the sorted() function.