提供一份Python代码，可以将给定数字列表按升序进行排序。


y=[5, 2, 8, 4, 0]
Sure, here's a Python code to sort a given list of numbers in ascending order:

```python
y = [5, 2, 8, 4, 0]
y.sort()
print(y)
```

Output:

```
[0, 2, 4, 5, 8]
```