Wanderlog interview question

Sort logs by certain criteria