Lesson Module · Detail
Sort lists (The Ball Challenge)
This module deepens the work with lists through copying, sorting, and position-based placement of objects. It supports the structured modeling of data processing steps and their implementation in program flows.

Introduction (Original excerpt)
Didactic classification
Subjective goal
Central to this module is the structured processing of data within lists. It introduces how existing lists can be copied to obtain original states for later processing steps. Building on this, list sorting is implemented based on a specific attribute and converted into concrete action logic. Learners must consider the relationship between data structure and physical placement in the model. The task illustrates that changes to data structures have immediate effects on subsequent process steps. This makes the connection between the data model and algorithmic implementation explicitly experiential.
Competence development
- Understanding of copying lists to preserve original states
- Application of sorting functions to structured data elements
- Selection of suitable attributes for ordering objects
- Linking data processing and position-dependent placement
- Analysis of faulty program flows and targeted correction
- Tracking the effects of changes in list order
- Implementation of data logic into sequential program steps
Didactic added value in teaching
- Structured progression when introducing list operations
- Clearly defined task to facilitate targeted error analysis
- Promoting systematic and step-by-step problem-solving
- Transparent goal orientation through clear sorting criteria
- Support for differentiation through alternative sort attributes
- Connection to further data processing concepts
Flow of the lesson unit
Correct sorting
In this step, an existing list processing is analyzed and adapted. The sorting must be switched to a suitable attribute and the subsequent storage logic corrected. This makes the connection between the sorting criterion and the subsequent position determination in the program flow clear.
- Didactic focus: Sorting of structured data
- Typical challenge: Assignment of data attributes to storage logic
Work assignment (excerpt)
- Sorting on the attribute name rearrange.
- Adjustments for correct storage through rotations.
Example (excerpt)
This fragment shows the sorting of a list copy based on a specific attribute as a basis for subsequent storage.
| |
Hints for classroom practice
- Use as an in-depth exercise to work with list structures
- Differenzierung possible through alternative sorting criteria
- Result security through comparison of corrected storage logics
- Extension by own sorting attributes possible afterwards
- Connection to topics such as data structures and object processing
The clear task structure supports lesson organization and facilitates result verification; differentiation is possible through extended sorting commands.
Request a demo access and test the module in your own course context.