The following command outputs the header of a file and sorts the records after the header. But how does it work? Can anyone explain this command?

```
awk 'NR == 1; NR > 1 {print $0 | "sort -k3"}'

```