In this task you will be given a list of dictionaries. A dictionary is a set of key-value pairs, where each key is unique and has a value associated with that key. You should sort the list of dictionaries from smallest to largest by their 'first' key. If there is two dictionaries with the same 'first' value then sort them by their 'second' key. Negative numbers should come before positive numbers.

Q: [{'first': -40, 'second': 0}, {'first': -51, 'second': 5}, {'first': 65, 'second': -98}, {'first': -31, 'second': -12}, {'first': -35, 'second': 44}, {'first': 35, 'second': 40}, {'first': -12, 'second': 84}, {'first': 11, 'second': -56}, {'first': 31, 'second': -55}, {'first': 46, 'second': 2}]

A: [{'first': -51, 'second': 5}, {'first': -40, 'second': 0}, {'first': -35, 'second': 44}, {'first': -31, 'second': -12}, {'first': -12, 'second': 84}, {'first': 11, 'second': -56}, {'first': 31, 'second': -55}, {'first': 35, 'second': 40}, {'first': 46, 'second': 2}, {'first': 65, 'second': -98}]
****
Q: [{'first': 77, 'second': -4}, {'first': 3, 'second': -26}, {'first': 79, 'second': -42}, {'first': -28, 'second': 22}, {'first': 96, 'second': -56}]

A: [{'first': -28, 'second': 22}, {'first': 3, 'second': -26}, {'first': 77, 'second': -4}, {'first': 79, 'second': -42}, {'first': 96, 'second': -56}]
****
Q: [{'first': -39, 'second': -29}, {'first': 66, 'second': -81}, {'first': -52, 'second': 2}, {'first': -71, 'second': 52}, {'first': 28, 'second': -55}, {'first': -40, 'second': 51}, {'first': 87, 'second': 57}]

A:
[{'first': -71, 'second': 52}, {'first': -52, 'second': 2}, {'first': -40, 'second': 51}, {'first': -39, 'second': -29}, {'first': 28, 'second': -55}, {'first': 66, 'second': -81}, {'first': 87, 'second': 57}]
****