DataTable - Reorder Both columns and rows can be reordered using dragdrop.
Draggable Columns
IdYearBrandColor
958a4a5e1989AudiBrown
84b8ed461998JaguarBlack
73dbb4ee1965RenaultGreen
1d5a493c1982VolkswagenWhite
db4a02d71990MercedesBlack
9019adbf1971VolvoSilver
4759a8f21975HondaGreen
0ebd1f911998BMWGreen
0ca639e11979FordBlack
85f721052009BMWMaroon
Draggable Rows
IdYearBrandColor
38c05ba01994VolkswagenYellow
f2d6a11e1984VolvoGreen
9367f9281975HondaBrown
fc6ab1541996AudiRed
e90687811987RenaultBlue
1f469c082003VolvoMaroon
e846f7f31992VolvoBlack
91f8bae81992VolvoOrange
815fc4d41963AudiMaroon
0544be6f1967BMWOrange
<h:form id="form">
    <p:growl id="msgs" showDetail="true" />

    <p:dataTable var="car" value="#{dtReorderView.cars1}" draggableColumns="true" style="margin-bottom:20px">
        <f:facet name="header">
            Draggable Columns
        </f:facet>
        <p:column headerText="Id">
            <h:outputText value="#{car.id}" />
        </p:column>

        <p:column headerText="Year">
            <h:outputText value="#{car.year}" />
        </p:column>

        <p:column headerText="Brand">
            <h:outputText value="#{car.brand}" />
        </p:column>

        <p:column headerText="Color">
            <h:outputText value="#{car.color}" />
        </p:column>
    </p:dataTable>

    <p:dataTable var="car" value="#{dtReorderView.cars2}" draggableRows="true">
        <p:ajax event="rowReorder" listener="#{dtReorderView.onRowReorder}" update=":form:msgs" />
        <f:facet name="header">
            Draggable Rows
        </f:facet>
        <p:column headerText="Id">
            <h:outputText value="#{car.id}" />
        </p:column>

        <p:column headerText="Year">
            <h:outputText value="#{car.year}" />
        </p:column>

        <p:column headerText="Brand">
            <h:outputText value="#{car.brand}" />
        </p:column>

        <p:column headerText="Color">
            <h:outputText value="#{car.color}" />
        </p:column>
    </p:dataTable>
</h:form>
                
PrimeTek, Copyright © 2015
All rights reserved.
Running PrimeFaces-6.0.16 on Mojarra-2.2.8.