# Adding sort icon in react

**URL:** <https://forum.codewithmosh.com/t/adding-sort-icon-in-react/388>\
**Category:** Uncategorized\
**Created:** [October 30, 2020, 7:59pm UTC](https://forum.codewithmosh.com/t/adding-sort-icon-in-react/388 "2020-10-30T19:59:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kukabshakiL125](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kukabshakiL125](https://forum.codewithmosh.com/u/kukabshakiL125)\
**Post date:** [October 30, 2020, 7:59pm UTC](https://forum.codewithmosh.com/t/adding-sort-icon-in-react/388/1 "2020-10-30T19:59:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/c3a73e6da941e8df9fe98e54d1c4b0be053b06bb.png)  
why i am getting this error i do console.log and it show path but the error is path is undefined

---

<div class="post-metadata">

**Author:** ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)\
**Post date:** [October 30, 2020, 10:14pm UTC](https://forum.codewithmosh.com/t/adding-sort-icon-in-react/388/2 "2020-10-30T22:14:43Z")

</div>

`console.log(column)` is missing a `;`

---

<div class="post-metadata">

**Author:** ![kukabshakiL125](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kukabshakiL125](https://forum.codewithmosh.com/u/kukabshakiL125)\
**Post date:** [October 31, 2020, 8:06am UTC](https://forum.codewithmosh.com/t/adding-sort-icon-in-react/388/3 "2020-10-31T08:06:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/1X/76076d672de0b1a5d543a47bde342f1e2210bf95.png)  
i have removed console.log  
but still getting error

---

<div class="post-metadata">

**Author:** ![ChrisUribe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/chrisuribe/32/62_2.png) [@ChrisUribe](https://forum.codewithmosh.com/u/ChrisUribe)\
**Post date:** [November 1, 2020, 6:27am UTC](https://forum.codewithmosh.com/t/adding-sort-icon-in-react/388/4 "2020-11-01T06:27:29Z")

</div>

Can you console.log(column); ? Just to see the structure of column.
