still problems with sorting posts after inserting three posts AND why is sending two socket messages when submiting a posts?