Revert "fixed inner table on edit and create, sorted departments"

This reverts commit 32027bcc36293cf6656a3d93c401a9d3ad7f607c.