(exprs []dag.SortExpr)
| 78 | } |
| 79 | |
| 80 | func sortKeysOfSortExprs(exprs []dag.SortExpr) order.SortKeys { |
| 81 | // XXX Only single sort keys. See issue #2657. |
| 82 | if len(exprs) != 1 { |
| 83 | return nil |
| 84 | } |
| 85 | key, ok := sortKeyOfExpr(exprs[0].Key, exprs[0].Order) |
| 86 | if !ok { |
| 87 | return nil |
| 88 | } |
| 89 | return order.SortKeys{key} |
| 90 | } |
| 91 | |
| 92 | func sortKeyOfExpr(e dag.Expr, o order.Which) (order.SortKey, bool) { |
| 93 | key := fieldOf(e) |
no test coverage detected