DataTable - Reorder Both columns and rows can be reordered using dragdrop.
Draggable Columns
IdYearBrandColor
372409cf1974MercedesRed
bb434c6e1988JaguarSilver
9fe0c2f01978VolkswagenGreen
3dea43cf2003JaguarMaroon
da29403a1968RenaultBlue
9119e6a22006AudiMaroon
5797873b1965VolvoMaroon
955ecbab1998FiatBlack
273f76a12002FiatBrown
2b0514081999HondaRed
Draggable Rows
IdYearBrandColor
3ca6f4321980AudiWhite
7969f1262009MercedesBrown
d13b165d1976VolvoBrown
7dc9e8461995HondaBlack
f01068481986HondaBlack
7d80f4691984VolvoGreen
f6903d401990MercedesYellow
fc3ba0671990FiatOrange
72d20e0b2001RenaultOrange
2a400a271989JaguarRed
<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 © 2017
All rights reserved.
Running PrimeFaces-6.1.4 on Mojarra-2.2.10.