---
title: "greaterThan"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/route-pattern/src/lib/specificity.ts#L23"
---

# greaterThan

## Summary

Returns true if match `a` is more specific than match `b`.

## Signature

```ts
function greaterThan(a: Match, b: Match): boolean

```

## Parameters

### `a`

the first match to compare

### `b`

the second match to compare

## Returns

true if `a` is more specific than `b`