add local and random shell scripts

- fix graph not sorting by key