Sort "deps" and "public_deps" when running the "gn format" command.

The "deps" and "public_deps" are sorted using the following order:
  1. litteral strings
    a. local targets, e.g. ":a",
    b. relative targets, e.g. "a" or "../a",
    c. absolute targets, e.g. "//a",
  2. other values, e.g. variable reference.

In each group, values are sorted alphabetically.

BUG=554928

Review URL: https://codereview.chromium.org/1496653002

Cr-Original-Commit-Position: refs/heads/master@{#362943}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b502732dcdb76fae1e8c2f8ddc63a019e9a9ecdd
3 files changed
tree: 25116d6e5d60888606c93709ec283a8ed5518b78
  1. tools/