Retinal ganglion cell (RGC) axons are topographically ordered in the optic tract according to their retinal origin. In zebrafish dackel (dak) and boxer (box) mutants, some dorsal RGC axons missort in the optic tract but innervate the tectum topographically. Molecular cloning reveals that dak and box encode ext2 and extl3, glycosyltransferases implicated in heparan sulfate (HS) biosynthesis. Both genes are required for HS synthesis, as shown by biochemical and immunohistochemical analysis, and are expressed maternally and then ubiquitously, likely playing permissive roles. Missorting in box can be rescued by overexpression of extl3. dak;box double mutants show synthetic pathfinding phenotypes that phenocopy robo2 mutants, suggesting that Robo2 function requires HS in vivo; however, tract sorting does not require Robo function, since it is normal in robo2 null mutants. This genetic evidence that heparan sulfate proteoglycan function is required for optic tract sorting provides clues to begin understanding the underlying molecular mechanisms.