# Simple Array Question

**URL:** <https://forum.kirupa.com/t/simple-array-question/214114>\
**Category:** Uncategorized\
**Created:** [January 25, 2007, 5:24pm UTC](https://forum.kirupa.com/t/simple-array-question/214114 "2007-01-25T17:24:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![octopus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/octopus/32/3176_2.png) [@octopus](https://forum.kirupa.com/u/octopus)\
**Post date:** [January 25, 2007, 5:24pm UTC](https://forum.kirupa.com/t/simple-array-question/214114/1 "2007-01-25T17:24:42Z")

</div>

I have an element in an array that comes from an alphabetical listing. The element might be something like “Frog, The” I need to remove the comma from the element and reverse it so it reads “The Frog” The code I have is as follows, but the comma is still there, any help is appreciated.

cols[1] = cols[1].split(",").reverse.join();
