Fauxton: fix sorting for tasks on click

there is no node property, but a target, source or database
depending on the task