Evens first

Write evens_first(items) that returns the list with all even numbers before all odd numbers, keeping the original relative order within the evens and within the odds.

evens_first([3, 1, 2, 4, 5, 6])  ->  [2, 4, 6, 3, 1, 5]
evens_first([1, 3])              ->  [1, 3]

The point is to practise stable sorting by a boolean key.

def evens_first(items):
    ...