“Nobody was stationed there by actual orders”
Not the case. Anderson, as the senior Army officer on scene, had the authority to order his troops to a position that was more defensible. Sumter was more easily defended with 100 or so troops, than the open batteries he had occupied.
Am aware that Anderson took it upon himself to move his force there. He wasn't ordered to be stationed there by his superiors.