Write a Python function `kth_element(arr, k)` that takes a list `arr` of integers and an integer `k` (1-based index) as input and returns the kth smallest element in the array. The function should sort the array in ascending order and then return the element at the (k-1)th index.
#### Example Usage
```python [main.nopy]
print(kth_element([12, 3, 5, 7, 19], 2)) # Output: 5
print(kth_element([17, 24, 8, 23], 3)) # Output: 23
print(kth_element([16, 21, 25, 36, 4], 4)) # Output: 25
```
#### Constraints
- The input array will have at least `k` elements.
- The input array will contain distinct integers.