function sortedKeys(obj) {
          var keys = [];
          for (var key in obj) {
            if (obj.hasOwnProperty(key)) {
              keys.push(key);
            }
          }
          return keys.sort();
        }
This is the Path URL creator. It uses Path to show Hierarchy in the Rest API.
This means that if you have an Account that then has a set of Buildings, a URL to a building
would be /accounts/123/buildings/456