# Order Rows Before Writing Block Group To PLC

**URL:** <https://forum.inductiveautomation.com/t/order-rows-before-writing-block-group-to-plc/4538>\
**Category:** Ignition\
**Created:** [May 28, 2012, 8:25am UTC](https://forum.inductiveautomation.com/t/order-rows-before-writing-block-group-to-plc/4538 "2012-05-28T08:25:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidamcg](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@aidamcg](https://forum.inductiveautomation.com/u/aidamcg)\
**Post date:** [May 28, 2012, 8:25am UTC](https://forum.inductiveautomation.com/t/order-rows-before-writing-block-group-to-plc/4538/1 "2012-05-28T08:25:39Z")

</div>

Hi

I recently encountered an issue when I was trying to write a block of values from a table to the PLC using the block group. I am wondering if it possible to order the data for the group before it is written. I found that unless the PLC array values [0],[1],[2] etc are ordered ascending in the DB table they will not get written correctly. I fixed the issue by creating the table with everything ordered ascending but would like to know if it possible to ensure it is correct by ordering before writing

Thanks

Aidan

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [May 29, 2012, 3:33pm UTC](https://forum.inductiveautomation.com/t/order-rows-before-writing-block-group-to-plc/4538/2 "2012-05-29T15:33:20Z")

</div>

Yes, there is a third tab at the top of that groups that allows you to see what the block looks like.

---

<div class="post-metadata">

**Author:** ![aidamcg](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@aidamcg](https://forum.inductiveautomation.com/u/aidamcg)\
**Post date:** [May 30, 2012, 12:21pm UTC](https://forum.inductiveautomation.com/t/order-rows-before-writing-block-group-to-plc/4538/3 "2012-05-30T12:21:21Z")

</div>

Hi

I not sure what you mean by third tab. Can you post a screen shot of where it is

Thanks

Aidan

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [May 30, 2012, 5:40pm UTC](https://forum.inductiveautomation.com/t/order-rows-before-writing-block-group-to-plc/4538/4 "2012-05-30T17:40:04Z")

</div>

Sorry, second tab called Block View.
