Tank Sorting ============ Again in the context of the water tanks from the previous problem, you are required to deliver the following sorting functions in the module :mod:`tank_sorting` (file :file:`tank_sorting.py`). ------------------------------------------------------------------------------------------------ The first function is: .. py:function:: tank_sort_1(tL) such that **given** *tL* a :class:`list` of of water tank info as described above **returns** a copy of *tL* but where that the tanks are ordered by placing first the tanks with more water contributions. In case of a tie the order in Lt is maintained. For example: .. literalinclude:: tank_sort_1.test :language: python3 :start-after: --ini :end-before: --fi Doctests are available in the :download:`tank_sort_1.test` file. ------------------------------------------------------------------------------------------------ The second function is: .. py:function:: tank_sort_2(tL) such that **given** *tL* a :class:`list` of water tank info as described above **rearranges** *tL* by placing first the tanks with higher capacity. The tanks with the same capacity must be alphabetically ordered. For example: .. literalinclude:: tank_sort_2.test :language: python3 :start-after: --ini :end-before: --fi Doctests are available in the :download:`tank_sort_2.test` file.