Probably something like this:
SELECT AccessCode, AccessDate FROM MyTable
ORDER BY AccessCode, AccessDate
That should give you something like this:
30079 02/07/2017 19:01
30097 02/07/2017 19:01
30097 03/07/2017 10:12
30234 02/07/2017 19:00
30234 03/07/2017 9:58
30455 02/07/2017 21:01
30507 02/07/2017 21:53
30563 03/07/2017 10:36
30578 02/07/2017 19:31
40187 02/07/2017 22:00
40456 02/07/2017 22:00
Where the access codes are together, and the dates are in order by code.
But this depends on your DB holding data in sensible column datatypes - if it doesn't then it could fail very easily.