# Why isn't Ordering an instance of Show in DAML?

**URL:** <https://forum.canton.network/t/why-isnt-ordering-an-instance-of-show-in-daml/1007>\
**Category:** App Development\
**Tags:** features and bugs\
**Created:** [August 8, 2020, 1:47pm UTC](https://forum.canton.network/t/why-isnt-ordering-an-instance-of-show-in-daml/1007 "2020-08-08T13:47:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [August 8, 2020, 1:47pm UTC](https://forum.canton.network/t/why-isnt-ordering-an-instance-of-show-in-daml/1007/1 "2020-08-08T13:47:21Z")

</div>

If I try to use `ordering` in the DAML REPL, I get the following error message:

```haskell
daml> compare (1,2) (1,3)
File: Line17.daml
Hidden: no
Range: 9:10-9:38
Source: typecheck
Severity: DsError
Message: 
  Line17.daml:9:11: error:
  • No instance for (Show Ordering) arising from a use of ‘show’
  • In the first argument of ‘return’, namely
  ‘(show (compare (1, 2) (1, 3)))’
  In the expression: return (show (compare (1, 2) (1, 3)))
  In an equation for ‘expr’:
  expr _ _ _ _ x _ _ parties _ steps _ _ _ _ chain _ _
  = return (show (compare (1, 2) (1, 3)))

```

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 10, 2020, 6:56am UTC](https://forum.canton.network/t/why-isnt-ordering-an-instance-of-show-in-daml/1007/2 "2020-08-10T06:56:47Z")

</div>

Hi @gyorgybalazsi,  
Good catch! I believe we just missed adding one. I’ve added the instance in [Add a Show instance for Ordering by cocreature · Pull Request #7068 · digital-asset/daml · GitHub](https://github.com/digital-asset/daml/pull/7068).

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [August 10, 2020, 8:40am UTC](https://forum.canton.network/t/why-isnt-ordering-an-instance-of-show-in-daml/1007/3 "2020-08-10T08:40:44Z")

</div>

The PR has been merged so this will be included in the next snapshot release. Note that this will be a snapshot for 1.5. 1.4 has already been frozen.
