Add `ORDERBY` functionality to DB

By default all resources are ordered by this logic:

- if `_orderby: 'key ASC|DESC` attribute is present in query than
  item is ordered by `key`;
- if `order` attribute is present, than `order` is used;
- otherwise, natural load order is used