Ordered packing induced by simultaneous shear and compaction