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': -25, 'second': 12}, {'first': -24, 'second': 76}, {'first': -45, 'second': -82}, {'first': -87, 'second': -26}, {'first': -58, 'second': 12}, {'first': 63, 'second': 15}, {'first': 52, 'second': 46}, {'first': 18, 'second': -64}, {'first': -78, 'second': 30}, {'first': -8, 'second': 40}]

A: [{'first': -87, 'second': -26}, {'first': -78, 'second': 30}, {'first': -58, 'second': 12}, {'first': -45, 'second': -82}, {'first': -25, 'second': 12}, {'first': -24, 'second': 76}, {'first': -8, 'second': 40}, {'first': 18, 'second': -64}, {'first': 52, 'second': 46}, {'first': 63, 'second': 15}]
****
Q: [{'first': -29, 'second': -44}, {'first': -55, 'second': 71}, {'first': 58, 'second': 54}]

A: [{'first': -55, 'second': 71}, {'first': -29, 'second': -44}, {'first': 58, 'second': 54}]
****
Q: [{'first': -34, 'second': 94}, {'first': -23, 'second': 89}, {'first': 77, 'second': 22}, {'first': -65, 'second': -19}]

A:
[{'first': -65, 'second': -19}, {'first': -34, 'second': 94}, {'first': -23, 'second': 89}, {'first': 77, 'second': 22}]
****