Given an integer array `nums`, return all unique triplets [a, b, c] with a <= b <= c that sum to 0. Return the list of triplets sorted for a deterministic result.