# File Listing Order

**URL:** <https://discourse.processing.org/t/file-listing-order/7148>\
**Category:** Coding Questions\
**Created:** [January 4, 2019, 4:43am UTC](https://discourse.processing.org/t/file-listing-order/7148 "2019-01-04T04:43:52Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 4, 2019, 2:24pm UTC](https://discourse.processing.org/t/file-listing-order/7148/20 "2019-01-04T14:24:01Z")

</div>

Your sketch is buggy! You’re calling **dataFile()** before **settings()**! 🐛  
The `private` system field PApplet::_sketchPath_ is initialized just before **settings()** is called back btW. 📲

[Processing.GitHub.io/processing-javadocs/core/processing/core/PApplet.html#sketchPath--](http://Processing.GitHub.io/processing-javadocs/core/processing/core/PApplet.html#sketchPath--)

---

_[View the full topic](https://discourse.processing.org/t/file-listing-order/7148)._
