As mentioned in this answer, you should use itemgetter for this purpose.
To sort your data by time, use this:
from operator import itemgetter
print(sorted(arr, key=itemgetter(4)))
[['W', 'R', 'Q', '09.04.2025', '12:06'],
['Y', 'X', 'V', '11.05.2022', '12:06'],
['A', 'B', 'C', '10.03.2030', '14:06'],
['Z', 'N', 'H', '10.03.2030', '14:06']]
If you need to sort by date (year), you need to define a separate function or use a lamda. I have written both solutions:
def sorting(item):
return item[3].split('.')[2]
print(sorted(arr, key=sorting))
# using lambda
print(sorted(arr, key= lambda item:item[3].split('.')[2]))
[['Y', 'X', 'V', '11.05.2022', '12:06'],
['W', 'R', 'Q', '09.04.2025', '12:06'],
['A', 'B', 'C', '10.03.2030', '14:06'],
['Z', 'N', 'H', '10.03.2030', '14:06']]
This way you don't rely on a third party package import.