# Positioning top-level tab

**URL:** <https://www.ruby-forum.com/t/positioning-top-level-tab/197397>\
**Category:** Radiant CMS\
**Created:** [October 13, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/positioning-top-level-tab/197397 "2010-10-13T22:05:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 13, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/positioning-top-level-tab/197397/1 "2010-10-13T22:05:29Z")

</div>

I’ve got a home-brewed extension that adds a tab and a couple of  
subtabs.  
The problem is that my added top-level tab isn’t quite where I want it  
(I  
want it to be the penultimate tab, not the last in the row). I see on  
the  
wiki[1] that there’s a key for specifying the order of the secondary  
tabs,  
but there doesn’t appear to be a way to shuffle the top-level tabs  
around.

Suggestions?

-dan

– Footnotes

[1]

> **[Developer Upgrade Notes](https://github.com/radiant/radiant/wiki/Developer-Upgrade-Notes/69b42dd26178f77a7f157147bdc64b9d68a8d7d7)**
>
> Radiant is a no-fluff, open source content management system designed for small teams. - radiant/radiant

---

<div class="post-metadata">

**Author:** ![D.Kreft](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@D.Kreft](https://www.ruby-forum.com/u/D.Kreft)\
**Post date:** [October 13, 2010, 10:26pm UTC](https://www.ruby-forum.com/t/positioning-top-level-tab/197397/2 "2010-10-13T22:26:48Z")

</div>

On Wed, Oct 13, 2010 at 4:04 PM, D.Kreft [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve got a home-brewed extension that adds a tab and a couple of subtabs.  
> The problem is that my added top-level tab isn’t quite where I want it (I  
> want it to be the penultimate tab, not the last in the row). I see on the  
> wiki[1] that there’s a key for specifying the order of the secondary tabs,  
> but there doesn’t appear to be a way to shuffle the top-level tabs around.  
> Suggestions?  
> -dan  
> – Footnotes  
> [1]

> **[Developer Upgrade Notes](https://github.com/radiant/radiant/wiki/Developer-Upgrade-Notes/69b42dd26178f77a7f157147bdc64b9d68a8d7d7)**
>
> Radiant is a no-fluff, open source content management system designed for small teams. - radiant/radiant

I just recently did this for Dashboard

> <https://github.com/saturnflyer/radiant-dashboard-extension/blob/master/dashboard_extension.rb#L9>

But the tabs are just arrays, so if you like you can use any way you  
would sort a ruby array  
[http://ruby-doc.org/core/classes/Array.html#M002185](http://ruby-doc.org/core/classes/Array.html#M002185)
